home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / catD / size64.z / size64
Encoding:
Text File  |  1998-10-30  |  3.3 KB  |  66 lines

  1.  
  2.  
  3.  
  4. ssssiiiizzzzeeee66664444((((DDDD2222))))                                                          ssssiiiizzzzeeee66664444((((DDDD2222))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _ssss_iiii_zzzz_eeee_6666_4444 - return size of logical block device
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_>>>>
  13.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_pppp_aaaa_rrrr_aaaa_mmmm_...._hhhh_>>>>
  14.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_dddd_dddd_iiii_...._hhhh_>>>>
  15.      _iiii_nnnn_tttt _p_r_e_f_i_x_ssss_iiii_zzzz_eeee_6666_4444_((((_dddd_eeee_vvvv______tttt _d_e_v_,,,, _dddd_aaaa_dddd_dddd_rrrr______tttt _****_b_l_o_c_k_s_))))_;;;;
  16.  
  17.    AAAArrrrgggguuuummmmeeeennnnttttssss
  18.      _d_e_v       The logical device number.
  19.  
  20.      _b_l_o_c_k_s    The size of the device in _NNNN_BBBB_PPPP_SSSS_CCCC_TTTT_RRRR-byte units (output argument).
  21.  
  22. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.      The _ssss_iiii_zzzz_eeee_6666_4444 entry point returns in _b_l_o_c_k_s the number of _NNNN_BBBB_PPPP_SSSS_CCCC_TTTT_RRRR-byte units
  24.      on a logical block device (partition), if successful.  If unsuccessful -1
  25.      is returned in _b_l_o_c_k_s.  _NNNN_BBBB_PPPP_SSSS_CCCC_TTTT_RRRR, defined in _pppp_aaaa_rrrr_aaaa_mmmm_...._hhhh, is the number of
  26.      bytes per logical disk sector.
  27.  
  28.    RRRReeeettttuuuurrrrnnnn VVVVaaaalllluuuueeeessss
  29.      On success, the _ssss_iiii_zzzz_eeee_6666_4444 routine should return 0; on failure, the return
  30.      value should be an error code.
  31.  
  32. UUUUSSSSAAAAGGGGEEEE
  33.      This entry point is optional in all block device drivers, required only
  34.      when it is possible to have a device whose size _NNNN_BBBB_PPPP_SSSS_CCCC_TTTT_RRRR-byte units will
  35.      not fit into an _iiii_nnnn_tttt.
  36.  
  37.      _ssss_iiii_zzzz_eeee_6666_4444(D2) is called only when the device is open.
  38.  
  39.    SSSSyyyynnnncccchhhhrrrroooonnnniiiizzzzaaaattttiiiioooonnnn CCCCoooonnnnssssttttrrrraaaaiiiinnnnttttssss
  40.      The _ssss_iiii_zzzz_eeee_6666_4444 routine has user context and can sleep.  However, it should be
  41.      careful not to spend much time sleeping, especially if the routine is
  42.      called when the logical device is not open.
  43.  
  44. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  45.      size(D2)
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                                                         PPPPaaaaggggeeee 1111
  62.  
  63.  
  64.  
  65.